package com.smt.modules.bus.service;

import com.baomidou.mybatisplus.service.IService;
import com.smt.common.utils.PageUtils;
import com.smt.common.utils.R;
import com.smt.modules.bus.entity.AttachmentEntity;
import com.smt.modules.bus.vo.AttachmentVo;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * 附件表
 *
 * @author murong
 * @email 981620741@qq.com
 * @date 2018-09-29 15:37:09
 */
public interface AttachmentService extends IService<AttachmentEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 获取当前团队下的文件列表
     *
     * @param project
     * @return
     */
    R list(Long project);

    /**
     * 保存文件记录
     *
     * @param attachment
     * @param userId
     * @return
     */
    R save(AttachmentVo attachment,Long userId);
}

